Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PF4 Charts: Add ChartAxis for custom tic labels #1309

Merged
merged 1 commit into from
Feb 25, 2019

Conversation

dlabrecq
Copy link
Member

@dlabrecq dlabrecq commented Feb 2, 2019

ChartAxis is a wrapper for VictoryAxis, which allows users to customize chart tic labels along the x/y axis.

This will allow Cost Management project to customize the tic labels as needed. For example, instead of crowding the chart with too many labels, we can limit the number and customize the label values.

Cost Management Example:
screen shot 2019-02-01 at 11 20 25 pm

PatternFly React Example:
screen shot 2019-02-01 at 10 52 16 pm

@patternfly-build
Copy link
Contributor

PatternFly-React preview: https://1309-pr-patternfly-react-patternfly.surge.sh

@coveralls
Copy link

coveralls commented Feb 2, 2019

Pull Request Test Coverage Report for Build 4633

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 80.376%

Totals Coverage Status
Change from base Build 4625: 0.0%
Covered Lines: 3369
Relevant Lines: 3926

💛 - Coveralls

@tlabaj tlabaj added PF4 React issues for the PF4 core effort enhancement 🚀 labels Feb 4, 2019
@rachael-phillips
Copy link
Contributor

@kybaker and @mcoker do you mind following this to make sure we are aligned with Core?

@dlabrecq
Copy link
Member Author

dlabrecq commented Feb 6, 2019

Note that this is just a wrapper around a Victory component -- an initial pass, similar to the other chart components. (We're currently using VictoryAxis component directly in our code.) The @patternfly/react-charts package still needs to be themed with colors, margins, etc.

@mcoker
Copy link
Contributor

mcoker commented Feb 6, 2019

As far as I'm aware, there is no overlap with this in core since we don't have a chart solution in core.

tlabaj
tlabaj previously approved these changes Feb 18, 2019
Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dlabrecq
Copy link
Member Author

Rebased

christiemolloy
christiemolloy previously approved these changes Feb 18, 2019
tlabaj
tlabaj previously approved these changes Feb 19, 2019
Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tlabaj
Copy link
Contributor

tlabaj commented Feb 19, 2019

@dlabrecq Can you please rebase again please. Some changes were made in Master to fix failing Build. Thanks.

@dlabrecq
Copy link
Member Author

Rebased. Please approve, again.

tlabaj
tlabaj previously approved these changes Feb 19, 2019
Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

kmcfaul
kmcfaul previously approved these changes Feb 20, 2019
ChartAxis is a wrapper for VictoryAxis, which allows users to customize chart tic labels along the x/y axis.
@dlabrecq
Copy link
Member Author

Rebase number 3. Please merge!

@redallen redallen merged commit cd6788b into patternfly:master Feb 25, 2019
@dlabrecq dlabrecq deleted the chart-axis branch June 25, 2019 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🚀 PF4 React issues for the PF4 core effort ux review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants